GBML manual / 3D

view3d_angle

The way the camera faces, in degrees from 0 up to just under 360 (0 looks right, 90 looks up the room).

Game Boy: not available

Game Boy Color: not available

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

view3d_angle() -> real

Returns

real

Description

The way the camera faces, in degrees from 0 up to just under 360: 0 looks right, 90 looks up the room.

The camera turns in steps of about a sixth of a degree, so the number can differ from the one you gave by that much.

Example

if (view3d_angle() > 180) { view3d_turn(-1); }

Turns back when the camera faces the lower half of the room.

On the GBA

The camera turns in steps of about a sixth of a degree, so the number can differ from the one you gave by that much.

See also: 3D viewview3d_turnview3d_camera